import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;

public class MyOutputStream extends OutputStream {
    public int a=0;
    public ArrayList<Integer> arrayList=new ArrayList();
    @Override
    public void write(int b) throws IOException {
        arrayList.add(b);
    }
}
